$(document).ready(function() {
    $("#forgot_password_link").click(function (){
      if ($("#id_agree").is(':checked')) {	
        $("#login_form").submit();	
      } else {	
	$("#_err").html("Please confirm you agree to our Terms & Conditions?");
      }
    });
    $("#id_agree").click(function() {
      $("#_err").html("");
    });
});